<#assign ctx="${springMacroRequestContext.contextPath}">
<#macro singleMenu mmm first>
<#if  mmm.open??>
 <li <#if first> topli="true" </#if> class="dropdown "><a  data-toggle="dropdown" class="dropdown-toggle"  title="${mmm.name}" tid='${mmm.id}' href="<#if  mmm.channel??>${ctx}/${mmm.channel.path}<#else>${mmm.link!'#'}</#if>">${mmm.name}<#if mmm.cssClass?has_content></#if></a> 
<#else>
<li  <#if first> topli="true" </#if> ><a  href="<#if  mmm.channel??>${ctx}/${mmm.channel.path}<#else>${mmm.link!'#'}</#if>" title="${mmm.name}">${mmm.name}</a></li> 
</#if>
<#if  mmm.open??>
<ul class="dropdown-menu"  role="menu">	
<#list mmm.children as  sm>
<#if sm.visible>
		<@singleMenu sm false/>
</#if>
</#list>
</ul>
</#if>
</#macro>


<#macro menuMacrob gname >
<@menu gname="${gname}" ;menus>
<#list menus as menu>
<#if menu.visible>
	<@singleMenu menu true/>
</#if>
</#list>
</@menu>
</#macro> 


 



